
package DBLayer;
import ModelLayer.StandardTask;
import java.util.ArrayList;

/**
 * @version 12/22/2011
 * @author Gruppe 4
 */

public interface IFDBStandardTask 
{
    /**
     * Method to get all StandardTasks from the database
     * @return returns an ArrayList with StandardTasks
     */
    public ArrayList<StandardTask> getAllStandardTasks();
    
    /**
     * Method to find a task with a specific id
     * @param standardTaskId int standardTaskId the id of the StandardTask
     * @return returns a StandardTask Object 
     */
    public StandardTask searchStandardTask(int standardTaskId);
    
    /**
     * Method to insert a StandardTask into the database
     * @param stTask an Object of the type StandardTask
     * @return returns an int 1 if the method succedes and -1 if the method fails
     */
    public int insertStandardTask(StandardTask stTask);
    
    /**
     * Method to update a standard task
     * @param stTask an Object of the type StandardTask
     * @return returns an int 1 if the method succedes and -1 if the method fails
     */
    public int updateStandardTask(StandardTask stTask); 
    
    /**
     * Method to delete a standard task
     * @param standardTaskId int standardTaskId the id of the StandardTask
     * @return returns an int 1 if the method succedes and -1 if the method fails
     */
    public int deleteStandardTask(int standardTaskId);    
}